//index.less
body {
  background-color: #f3f5f7;
}

* {
  margin: 0;
  padding: 0;
}

.container {
  //头部
  .header {
    width: 1200px;
    height: 42px;
    margin: 30px auto;

    .content {
      overflow: hidden;

      h1 {
        float: left;
        margin-right: 70px;
      }

      .header-nav {
        ul li {
          float: left;
          list-style-type: none;
          margin-right: 26px;

          & a:hover {
            border-bottom: 2px #00a4ff solid;
          }
        }

        a {
          height: 42px;
          line-height: 42px;
          font-size: 18px;
          color: #050505;
          display: inline-block;
          text-decoration: none;
          padding: 0 9px;
        }

      }

      .search {
        float: left;
        width: 412px;
        height: 40px;
        margin-left: 59px;
        border: solid 1px #00a4ff;

        input {
          float: left;
          width: 342px;
          height: 40px;
          border: 0;
          padding-left: 20px;
          background-color: #f3f5f7;

          &::placeholder {
            font-size: 14px;
            color: #bfbfbf;
          }
        }

        button {
          float: left;
          width: 50px;
          height: 40px;
          border: 0;
          background-image: url("../images/btn.png");
        }
      }

      .user {
        float: right;
        height: 42px;
        max-width: 118px;
        margin-right: 35px;
        line-height: 42px;

        img {
          width: 30px;
          height: 30px;
          border-radius: 15px;
          vertical-align: middle;
        }

        span {
          font-size: 14px;
          font-weight: normal;
          font-stretch: normal;
          letter-spacing: 1px;
          color: #666666;
        }
      }

    }
  }

  //轮播图
  .banner {
    height: 420px;
    background-color: #1c036c;

    .banner-img {
      width: 1200px;
      height: 420px;
      margin: 0 auto;
      background-image: url("../images/banner2.png");

      .left {
        float: left;
        width: 190px;
        height: 420px;
        background-color: #000000;
        opacity: 0.3;

        ul {
          font-size: 14px;
          line-height: 44px;
          margin: 10px 21px 0 20px;

          li {
            list-style-type: none;

            a {
              color: white;
              font-size: 14px;
              text-decoration: none;

              span {
                float: right;
              }

              &:hover {
                color: #00b4ff;
              }
            }
          }
        }
      }

      .right {
        float: right;
        width: 228px;
        height: 300px;
        margin-top: 50px;
        margin-bottom: 70px;
        background-color: #ffffff;

        .title {
          width: 228px;

          h2 {
            height: 48px;
            font-size: 18px;
            line-height: 48px;
            letter-spacing: 2px;
            color: #ffffff;
            text-align: center;
            background-color: #9bceea;
          }
        }

        .context {
          padding: 0 19px;

          dl {
            padding: 15px 0;
            border-bottom: 2px #e5e5e5 solid;
          }

          dt {
            font-size: 14px;
            letter-spacing: 1px;
          }

          dd {
            font-size: 12px;
            font-weight: bold;
            color: #a5a5a5;
            letter-spacing: 1px;

          }
        }

        .course {
          width: 200px;
          height: 41px;
          font-size: 16px;
          font-weight: bold;
          letter-spacing: 2px;
          line-height: 41px;
          text-align: center;
          margin: 4px 14px 11px 14px;
          border: 2px #00a4ff solid;

          a {
            color: #00a4ff;
            text-decoration: none;
          }
        }
      }
    }
  }

  //精品推荐导航
  .recommend-nav {
    width: 1200px;
    height: 60px;
    line-height: 60px;
    margin: 8px auto;
    box-shadow: 0 2px 3px 0 rgba(118, 118, 118, 0.2);

    ul {
      li {
        float: left;
        font-size: 14px;
        list-style: none;

        a {
          padding-left: 38px;
          padding-right: 38px;
          text-decoration: none;
          border-right: 1px #bfbfbf solid;
        }

        &:nth-child(n+2) {
          a {
            color: #050505;

            &:hover {
              color: #00a4ff;
            }
          }
        }

        &:nth-child(1) {
          color: #00a4ff;
          font-weight: bold;
        }

        &:nth-last-child(1) {
          float: right;

          a {
            color: #00a4ff;
            border: 0;
          }
        }

        &:nth-last-child(2) {
          a {
            border: 0;
            margin-right: 26px;
          }
        }
      }
    }
  }

  //精品推荐
  .recommend {
    width: 1200px;
    overflow: hidden;
    margin: 37px auto 0;

    h4 {
      float: left;
      height: 19px;
      font-size: 20px;
      font-weight: normal;
      font-stretch: normal;
      color: #494949;
    }

    h6 {
      float: right;
      height: 19px;
      font-size: 12px;
      font-weight: normal;
      font-stretch: normal;
      margin-top: -15px;
      color: #a5a5a5;

      a {
        text-decoration: none;
        margin-right: 31px;
      }
    }

    .goods {
      overflow: hidden;
      margin-top: 20px;

      .goods-item {
        float: left;
        width: 228px;
        height: 270px;
        margin-right: 15px;
        margin-top: 15px;

        &:nth-child(5n) {
          margin-right: 0;
        }
      }
    }

  }

  //编程入门
  .recommend1 {
    width: 1200px;
    height: 433px;
    overflow: hidden;
    margin: 0 auto ;
    padding-top: 38px;

    h4 {
      float: left;
      height: 19px;
      font-size: 20px;
      font-weight: normal;
      font-stretch: normal;
      color: #494949;
    }

    h6 {
      float: right;
      height: 11px;
      font-size: 12px;
      font-weight: normal;
      font-stretch: normal;
      margin-top: -15px;
      color: #a5a5a5;

      a {
        text-decoration: none;
        margin-right: 31px;
      }
    }

    .main-left {
      float: left;
      margin-right: 15px;

      img {
        width: 228px;
        height: 392px;
        margin-top: 22px;
      }
    }

    .main-right {
      float: left;

      img {
        margin-top: 22px;
      }

      .goods {
        .goods-item {
          float: left;
          width: 228px;
          height: 270px;
          margin-right: 15px;

          &:nth-child(4n) {
            margin-right: 0;
          }
        }
      }
    }
  }

  //底部
  .footer {
    height: 270px;
    margin-top: 40px;
    overflow: hidden;
    background-color: #fff;

    .context {
      width: 1200px;
      margin: 33px auto 0;

      .main-left {
        float: left;
        width: 462px;
        margin-left: 21px;

        p {
          width: 426px;
          height: 30px;
          font-size: 12px;
          color: #666666;
          margin-top: 25px;
          margin-bottom: 30px;
        }

        a {
          width: 120px;
          height: 36px;
          padding: 10px 27px;
          text-decoration: none;
          color: #00a4ff;
          border: 1px solid #00a4ff;
        }
      }

      .main-right {
        width: 536px;
        float: right;
        display: inline-block;
        margin-right: 31px;

        ul {
          float: left;
          margin-right: 140px;

          &:nth-last-child(1) {
            margin-right: 0;
          }

          li {
            font-size: 12px;
            line-height: 21px;
            list-style: none;

            &:nth-child(1) {
              font-size: 16px;
              color: #333333;
              margin-bottom: 15px;
            }

            a {
              color: #333333;
              text-decoration: none;
            }
          }
        }
      }
    }
  }
}

//通用样式
.common-ul-level {
    display: flex;
    width: 338px;
    margin: 0 auto ;
    justify-content: space-between;

    li {
      font-size: 16px;
      text-align: center;
      list-style: none;

      a {
        color: #868686;
        text-decoration: none;
      }

      &:nth-child(1) a {
        color: #00a4ff;
      }
    }
}
